﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" EnableEventValidation="false"
CodeBehind="CreateAdvertisement.aspx.cs" Inherits="brockredge.Welcome" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

    <script type="text/javascript">
   
    </script>
    <style type="text/css">
    .style2
    {
        width: 80px;
    }
        .style3
        {
            height: 23px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <table>
<tr valign="top">
<td>

    <div id="leftContent" class="leftContent" runat="server"
       style="text-align:justify; width:250px; height:auto; background-color:#7E2217; color:White; float:left;"> 
    <div style="margin:6px 6px;">
        This is an internet portal dedicated to meet every aspect of the consumers needs in the real estate industry.<br />
        <br />
        It is a forum where buyers, sellers and brokers can exchange information, quickly, effectively and inexpensively.<br />
        <br />
&nbsp;At our site, you can advertise a property, search for a property, browse through properties, build your own property Microsite, and visit other Indian and International sites.
</div>
    </div>
    <asp:DropShadowExtender ID="DropShadowExtender1"
                            TargetControlID="leftContent" 
                            Rounded="true"
                            Opacity=".2" 
                            ClientIDMode="Predictable" 
                            Radius="-1"
                            TrackPosition="true"
                            runat="server">
    </asp:DropShadowExtender>
</td>
<td>
    <div style="padding-left:100px">
    <h4 >
        Create Advertisement!
        </h4>
    </div>
    <br />
    <div style="padding-left: 20px;">
    <table width="100%">
         <tr align="center">
            <td colspan="2">
                <asp:Label ID="errorlbl" runat="server"></asp:Label>
            </td>
         </tr>
         <tr>
            <td align="right">
                <asp:Label ID="title" runat="server" Text="Title*"></asp:Label>
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="titletxtbox" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                 ControlToValidate="titletxtbox"><img src="IMAGES/required.png" /></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr >
            <td valign="top" align="right">
                <asp:Label ID="Description" runat="server" Text="Description*"></asp:Label>
            </td>
            <td class="style2" align="left">
                <asp:TextBox ID="descriptiontxtbox" runat="server" TextMode="MultiLine" 
                    Height="132px" Width="300px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                 ControlToValidate="descriptiontxtbox"><img src="IMAGES/required.png" /></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr >
            <td class="style3" align="right">
                <asp:Label ID="purpose" runat="server" Text="Purpose"></asp:Label>
            </td>
            <td align="left">
                <div style="float:left;">
                <asp:CheckBox ID="sellchkbox" runat="server" Text="Sell"/>
                </div>
                <div style="width: 111px">
                <asp:CheckBox ID="rentchkbox" runat="server" Text="Rent"/>
                </div>
            </td>
             
        </tr>
        <tr >
            <td align="right">
                <asp:Label ID="sellcost" runat="server" Text="Selling Cost"></asp:Label>
            </td>
            <td class="style2" align="left">
                <asp:TextBox ID="sellcosttxtbox" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                 ControlToValidate="sellcosttxtbox" ><img src="IMAGES/required.png" /></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="rentcost" runat="server" Text="Rent Cost"></asp:Label>
            </td>
            <td class="style2" align="left">
                <asp:TextBox ID="rentcosttxtbox" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="rentcosttxtbox"> <img src="IMAGES/required.png" /></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                 <asp:Label ID="address" runat="server" Text="Address*"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="locnametxtbox" runat="server"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
        <td align="right">
                 <asp:Label ID="landmarklbl" runat="server" Text="Near Landmark*"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="landmarktxtbox" runat="server"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="Location" runat="server" Text="Location*"></asp:Label>
            </td>
            <td align="left">
        <div id="locationdiv">
           
            <asp:DropDownList ID="ddlstate" runat="server" Width="200px">
            </asp:DropDownList>
            <asp:CascadingDropDown ID="CddlState" 
                                   TargetControlID="ddlstate" 
                                   runat="server"
                                   Category="State"
                                   PromptText="State:"
                                   LoadingText="Loading..."
                                   ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                   ServiceMethod="getStates">
        </asp:CascadingDropDown>
           
           <asp:DropDownList ID="ddlcity" runat="server" width="200px">
           
            </asp:DropDownList>
            <div id="otherCitydiv" style="display:none">
                <asp:TextBox ID="otherCity" runat="server" ToolTip="Insert City Other Than The Given List"></asp:TextBox>       
            </div>    
       
            <asp:DropDownList ID="ddlarea" runat="server" Width="200px">
            <asp:ListItem>Other</asp:ListItem>
            </asp:DropDownList>
            <div id="otherAreadiv" style="display:none">
            <asp:TextBox ID="otherArea" runat="server" ToolTip="Insert Area Other Than The Given List"></asp:TextBox>           
            </div>
        </div>
        </td>
        <td>
        
        </td>
        </tr>
        
          <tr>
            <td align="right">
                <asp:Label ID="image" runat="server" Text="Image"></asp:Label>
            </td>
            <td class="style2">
               
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Button1" runat="server" Text="Create" onclick="Button1_Click" />
            </td>
        </tr>
            
    </table>
    </div>
 </td>
 </tr>
 </table> 
    
        
        <asp:CascadingDropDown ID="CddlCity" 
                               runat="server"
                               TargetControlID="ddlcity"
                               Category="City"
                               ParentControlID="ddlstate"
                               PromptText="City:"
                                LoadingText="Loading..."
                                ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                ServiceMethod="getCitiesByState">
        </asp:CascadingDropDown>
         <asp:CascadingDropDown ID="cddlArea" 
                               runat="server"
                               TargetControlID="ddlarea"
                               Category="Area"
                               ParentControlID="ddlcity"
                                PromptText="Area:"
                                LoadingText="Loading..."
                                ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                ServiceMethod="getAreas">
        </asp:CascadingDropDown>
    
  
    
</asp:Content>
